//
//  YYTeacherCell.m
//  drivingSchool
//
//  Created by 子yu 刘 on 2018/8/11.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "YYTeacherCell.h"

@implementation YYTeacherCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setGrade:(int)grade{
    for (UIView * view in self.gradeView.subviews) {
        [view removeFromSuperview];
    }
    for (int i =0; i<grade; i++) {
        UIImageView * star = [[UIImageView alloc] initWithFrame:CGRectMake(16*i, 4, 12, 12)];
        star.image = DEF_IMAGENAME(@"star_studaycar");
        [self.gradeView addSubview:star];
        
    }
    
}


@end
